# Filters added to this controller will be run for all controllers in the application.
# Likewise, all the methods added will be available for all controllers.
class ApplicationController < ActionController::Base

	def file_to_browser
	  file = params[:filepath]
	  dest = params[:destination]
	  content = params[:content_type]
	  send_file(file, :type => content, :disposition => dest) 
	end

end